package org.beaconframework.ext.aws.typica;

import org.springframework.beans.factory.config.PropertyOverrideConfigurer;

import com.xerox.amazonws.sdb.SimpleDB;

public class TypicaClientFactory {

	String accessKeyId;
	String secretAccessKey;
	public String getAccessKeyId() {
		return accessKeyId;
	}
	public void setAccessKeyId(String accessKeyId) {
		this.accessKeyId = accessKeyId;
	}
	public String getSecretAccessKey() {
		return secretAccessKey;
	}
	public void setSecretAccessKey(String secretAccessKey) {
		this.secretAccessKey = secretAccessKey;
	}
	
	public SimpleDB createSimpleDBClient() {
		
		SimpleDB db = new SimpleDB(getAccessKeyId(), getSecretAccessKey());
		db.setSignatureVersion(1);
		PropertyOverrideConfigurer poc;
		return db;
	}
}
